package com.xs.simple.demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.messaging.Message;
import org.springframework.stereotype.Component;


@Component
public class SinkReceiver2 {
	private static Logger logger = LoggerFactory.getLogger(SinkReceiver2.class);

	@StreamListener(MySink.channelName)
	public void receive(Message<String> body) {
		logger.info("SinkReceiver2 receive:" + body.getPayload());
	}
}
